import { http } from "@/utils/http";
import type { HttpResult } from "@/utils/http/types";

export function queryList(params?: object) {
  return http.request<HttpResult>("get", "/esflow/run/node/get/list", {
    params: params
  });
}

export function queryById(id?: string) {
  return http.request<HttpResult>("get", `/esflow/run/node/get/${id}`);
}
